﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Maticsoft.Model.Register;
using Register.IDAL;
using Register.DALFactory;

namespace Register.BLL
{
   public  class RegistrationFeeInfoBLL
    {
       private static String typeNameKey = "IRegistrationFeeInfoDALKey";
       public static bool Add(RegistrationFee model)
       {
           IRegistrationFeeInfoDAL iRegistrationFee= DALFactory<IRegistrationFeeInfoDAL>.Create(typeNameKey);
           return iRegistrationFee.Add(model);
       }

       public static bool Update(RegistrationFee model) 
       {
           IRegistrationFeeInfoDAL iRegistrationFee = DALFactory<IRegistrationFeeInfoDAL>.Create(typeNameKey);
           return iRegistrationFee.Update(model);
       }

       public static bool Delete(string RegistrationFee_ID)
       {
           IRegistrationFeeInfoDAL iRegistrationFee = DALFactory<IRegistrationFeeInfoDAL>.Create(typeNameKey);
           return iRegistrationFee.Delete(RegistrationFee_ID);
       }

       public static List<RegistrationFee> GetAllRegistrationFee(string where, int pageIndex, int size) 
       {
           IRegistrationFeeInfoDAL iRegistrationFee = DALFactory<IRegistrationFeeInfoDAL>.Create(typeNameKey);
          return  iRegistrationFee.GetAllRegistrationFee(where, pageIndex, size);
       }


       public static int GetRoleCount(string where)
       {
           IRegistrationFeeInfoDAL iRegistrationFee = DALFactory<IRegistrationFeeInfoDAL>.Create(typeNameKey);
           return iRegistrationFee.GetRoleCount(where);
       
       
       }

    }
}
